﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using BlueCMS.Core.Data.Query.Columns;

namespace BlueCMS.Core.Data.Query.Clauses
{
    public class SetClause : ISetClause
    {
        public List<UpdateColumn> UpdateColumns { get; private set; }

        public SetClause()
        {
            UpdateColumns = new List<UpdateColumn>();
        }

        public IUpdateColumn Column(string name)
        {
            UpdateColumn column = new UpdateColumn(name, this);
            UpdateColumns.Add(column);
            return column;
        }
    }
}
